package copy.controller;

import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * http://localhost:8088/now
 **/
@Slf4j
//@RestController
//@RequestMapping("/now")
public class Nowing {
    @RequestMapping
    public String s() {
        System.out.println("ok");
        log.info("日志随机数s{}", IdWorker.getId());
        return "return的字符串s";
    }

    @GetMapping("/abc")
    public String ss() {
        System.out.println("ok");
        log.info("日志随机数ss   ：{}", IdWorker.getId());
        return "return的字符串ss";
    }

    @RequestMapping("/123")
    public String sss() {
        System.out.println("ok");
        log.info("日志随机数sss   ：{}", IdWorker.getId());
        return "return的字符串sss";
    }
}
